/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;

/**
 *
 * @author QUY_THI
 */
@ManagedBean
@SessionScoped
public class LogoutBean {

    /** Creates a new instance of LogoutBean */
    public LogoutBean() {
    }

    public String reset() {
        FacesContext.getCurrentInstance().getExternalContext().invalidateSession();
        return "/index.xhtml?faces-redirect=true";
    }
}
